<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------
namespace app\user_center\behavior\user\register_apple_after;

/**
 * 更新登录信息
 * @package app\user_center\behavior\user\register_apple_after
 * @author shiqiang
 */
class updateLoginInfo{
    public function run($params){
		$apple_id 	 = $params['apple_id'];
		
		$result = model('UcMemberApple', 'model\user') -> getDataByAppleid($apple_id);//检测是否注册
		$uid = $result['data']['uid'];
		
		$last_login_type = 4;//苹果账号登陆
		$result = model('Member', 'model\user') -> updateUserLogin($uid, $last_login_type);
	}
}